﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using MyHotel_BUSWS.MyHotel_MatHangDAO_Webservice;

namespace MyHotel_BUSWS
{
    /// <summary>
    /// Summary description for MHQuanLyMatHangBUSWS
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class MHQuanLyMatHangBUSWS : System.Web.Services.WebService
    {

        [WebMethod]
        public MatHang[] getListMatHang()
        {
            return MHQuanLyMatHangBUS.getListMatHang();
        }

        [WebMethod]
        public bool themMatHang(MatHang matHang)
        {
            return MHQuanLyMatHangBUS.themMatHang(matHang);
        }

        [WebMethod]
        public bool xoaMatHang(int maMH)
        {
            return MHQuanLyMatHangBUS.xoaMatHang(maMH);
        }

        [WebMethod]
        public bool suaMatHang(MatHang matHang)
        {
            return MHQuanLyMatHangBUS.suaMatHang(matHang);
        }
    }
}
